package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "subject_lesson")
public class SubjectLesson implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private String addStaffUid;

    private String addStaffName;

    private String lastStaffUid;

    private String lastStaffName;

    private String uid;

    private Integer enabled;

    private Integer freeStatus;

    private String htmlUrl;

    private String lessonName;

    private Integer lessonOrder;

    private String secondLevel;

    private Long subjectId;

    private Long subjectMainId;

    private String subjectMainName;

    private Integer subjectOrder;

    private String teachAims;

    private String teachPlanUrl;

    private String dataUrl;

    private Integer downloadNum;

    /**
     * 兜学慧课件id
     */
    private Long dxhLessonId;

    /**
     * 书籍信息
     */
    private String bookIsbn;
    private String bookImg;
    private String bookPress;

    /**
     * 是否在小程序展示
     * 0.不展示 1.展示
     */
    private Integer xcxStatus;

    private String subjectNodes;

}
